package by.gamedev.site.client.app.place;

import by.gamedev.site.client.managed.request.ApplicationRequestFactory;

import com.google.gwt.place.shared.PlaceTokenizer;
import com.google.inject.Inject;

public class PlaceHistoryFactory {

    private final ProxyListPlace.Tokenizer proxyListPlaceTokenizer;
    private final ProxyPlace.Tokenizer     proxyPlaceTokenizer;

    @Inject
    public PlaceHistoryFactory(final ApplicationRequestFactory requestFactory) {
        proxyListPlaceTokenizer = new ProxyListPlace.Tokenizer(requestFactory);
        proxyPlaceTokenizer = new ProxyPlace.Tokenizer(requestFactory);
    }

    public PlaceTokenizer<ProxyListPlace> getProxyListPlaceTokenizer() {
        return proxyListPlaceTokenizer;
    }

    public PlaceTokenizer<ProxyPlace> getProxyPlaceTokenizer() {
        return proxyPlaceTokenizer;
    }

}
